Skip to content

fix(diffusers): forward original config for single files - #11227

Open
localai-org-maint-bot wants to merge 2 commits into
masterfrom
bot/issue-3250-original-config
Open

fix(diffusers): forward original config for single files#11227
localai-org-maint-bot wants to merge 2 commits into
masterfrom
bot/issue-3250-original-config

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Description

Closes #3250.

Adds a typed diffusers.original_config_file model setting and forwards it to Diffusers only when loading a single-file checkpoint. Directory and Hub from_pretrained loads keep their existing arguments, and an unset value remains backward-compatible.

The load-argument decision lives in a dependency-free helper so it can be tested without installing the full Diffusers runtime. The model configuration reference and image-generation guide now document the field and include an offline single-file example.

Notes for Reviewers

The new proto3 ModelOptions.OriginalConfigFile uses field number 76. Core does not validate or rewrite the configured path because it is interpreted in the backend worker filesystem/URL context.

Verification:

  • make protogen-go
  • go test ./core/backend
  • python3 -m unittest backend/python/diffusers/test_load_options.py
  • python3 -m py_compile backend/python/diffusers/backend.py
  • independent task review: PASS

Signed commits

  • Yes, I signed my commits.
  • Documentation updated (docs/content/) for user-facing changes, or not applicable

@localai-org-maint-bot
localai-org-maint-bot force-pushed the bot/issue-3250-original-config branch from 28a3bd0 to 029a953 Compare July 31, 2026 01:07
@localai-org-maint-bot
localai-org-maint-bot force-pushed the bot/issue-3250-original-config branch from 029a953 to cc3472b Compare July 31, 2026 12:05
Expose original_config_file through the model configuration metadata registry so registry completeness checks and generated configuration surfaces stay in sync.

Assisted-by: Codex:gpt-5 [systematic-debugging]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow Setting original_config_file for Diffusers Backend

1 participant